﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MRO.ClientApplication.Models.BaiYa
{
    public class BaiYa_SendDelivery
    {
        /// <summary>
        /// 单据日期
        /// </summary>
        public string Fdate { get; set; }

        /// <summary>
        /// 收料组织编码
        /// </summary>
        public string ReceivingOrgNo { get; set; }

        /// <summary>
        /// 收料部门编码
        /// </summary>
        public string ReceivingDeptNo { get; set; }

        /// <summary>
        /// 采购组织编码
        /// </summary>
        public string PurchaseOrgNo { get; set; }

        /// <summary>
        /// 采购部门编码
        /// </summary>
        public string PurchaseDeptNo { get; set; }

        /// <summary>
        /// 采购员编码
        /// </summary>
        public string BuyerNumber { get; set; }

        /// <summary>
        /// 供应商编码
        /// </summary>
        public string SuppNo { get; set; }

        public List<BY_DeliveryDetail> details { get; set; }
    }

    public class BY_DeliveryDetail
    {
        /// <summary>
        /// 产品编码
        /// </summary>
        public string Cinvcode { get; set; }

        /// <summary>
        /// 实收数量
        /// </summary>
        public decimal RealQty { get; set; }

        /// <summary>
        /// 货主 固定值：BYG01
        /// </summary>
        public string OrgNo { get; set; }

        /// <summary>
        /// 入库仓库，固定值：100104（ERP五金库）
        /// </summary>
        public string StockNo { get; set; }

        /// <summary>
        /// "KCZT01_SYS",//库存状态 （合格：KCZT01_SYS；待检：KCZT02_SYS）
        /// </summary>
        public string StockStatus { get; set; }

        /// <summary>
        /// 含税单价
        /// </summary>
        public decimal TaxPrice { get; set; }

        /// <summary>
        /// 税率
        /// </summary>
        public int TaxRate { get; set; } = 13;
    }
}